FROM ubuntu:latest

RUN apt-get update && apt-get install -y \
	chromium-browser \
	openssh-client \
	openssh-server \
	vim

#Chinese
RUN apt-get install -y \
	ttf-wqy-microhei \
	ttf-wqy-zenhei \
	xfonts-wqy
	
COPY local.conf /etc/fonts/local.conf
#Chinese end

RUN apt-get autoclean && apt-get autoremove

RUN mkdir -p /root/Downloads

ENTRYPOINT ["chromium-browser", "--no-sandbox"]

#local
#    docker run --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -d chrome
#remote
#    docker run -e DISPLAY=10.0.75.1:0.0 --rm -d chrome
#param
#    --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --user-data-dir=/root/chrome-data --disable-web-security --headless --disable-gpu
